import {queryKeywordAll} from "../controller/keyword.js";
import {getHtml} from "../controller/index.js";

const taskFun =async ()=>{
    console.log("start task")
    const list =await queryKeywordAll()
    console.log(list)
    for(let i=0;i<list.length;i++){
        console.log(i)
        await getHtml(list[i].name)
        await new Promise(resolve => setTimeout(resolve, 200000))
    }
}

export default taskFun
